﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Characters;

namespace The_Chronicles_of_Asku
{
    class ThirdTraining
    {
        Hero myHero = new Hero();
        Mob zombie = new Undead();
        Mob skel = new Skeleton();
        Mob necro = new Necromancer();
        Battle battle = new Battle();
        SetMobLevels setLevels = new SetMobLevels();
        bool complete = false;

        public void entrance(Hero myHero, Undead zombie)
        {
            Skeleton skel = new Skeleton();
            Necromancer necro = new Necromancer();

            setLevels.setMobLevelOne(skel, necro, zombie);
            Console.WriteLine("Samil summons an Undead to fight! Prepare yourself for battle!\n");

            battle.Fight(myHero, zombie);

            if (myHero.health > 0)
            {
                Console.WriteLine("Congratulations! You won!");
                complete = true;
            }

            else if (myHero.health == 0)
            {
                Console.WriteLine("You failed. Try again later. Better luck next time.");
                myHero.isAlive = true;
            }

            zombie.ResetStats(zombie);
            myHero.ResetStats(myHero);

            Console.ReadLine();
            Console.Clear();
        }
    }
}